#include "MLError.h"
#include <QMessageBox>
#include "MLExeption.h"

MLError::MLError(QObject *parent) :
    QObject(parent)
{
}

void MLError::showError(MLExeption *pExeption)const
{
    //Display the Error and/or add to logFile.log

    switch(pExeption->priority())
    {
    case LOW:
        {
            //Not necessary to display this type of error (warning)
            //just add to the LogFile
        }
        break;

    case NORMAL:
        {
            //Display this type of error to the user (information)

        }
        break;

    case HIGH:
        {
            //Display (if possible) this type of error to the user (critical)

        }
        break;
    default:
        //we should never be here
        break;
    }
}
